package com.cskaoyan.mall.service;

import com.cskaoyan.mall.model.goods.*;
import com.cskaoyan.mall.model.message.Reply;
import com.cskaoyan.mall.model.message.ReplyMsgVO;

import java.util.List;

/**
 * @author: jyf2000jyf
 */
public interface GoodsService {
    List<Type> getType();

    boolean addGoods(AddGoodsBO addGoodsBO);

    List<GoodsByTypeVO> getGoodsByType(int typeId);

    boolean addType(Type type);

    boolean deleteGoods(int id);

    boolean deleteType(int typeId);

    GoodsInfoVO getGoodsInfo(int goodsId);

    boolean updateGoods(UpdateGoodsBO updateGoodsBO);

    boolean addSpec(Spec spec);

    boolean deleteSpec(Spec spec);

    List<ReplyMsgVO> getNoReplyMsg();

    List<ReplyMsgVO> getRepliedMsg();

    boolean reply(Reply replyContent);

    List<GoodsByNameVO> getGoodsByName(String goodsName);

    List<GoodsMsgVO> getGoodsMsg(Integer id);

    GoodsCommentVO getGoodsComment(Integer goodsId);

    GoodsInfoWithoutGoodsVO getGoodsInfoWithoutGoodsVO(Integer goodsId);

    boolean askGoodsMsg(AskGoodsMsgBO askGoodsMsgBO);
}
